<template>
  <div class="q-pa-md">
    <div class="q-gutter-y-md column" style="max-width: 300px">
      <t-field filled :model-value="email" suffix="@gmail.com">
        <template v-slot:before>
          <t-icon name="mail" />
        </template>

        <template v-slot:control>
          <div
            class="self-center full-width no-outline text-right"
            tabindex="0"
            >{{ email }}</div
          >
        </template>
      </t-field>

      <t-field outlined :model-value="number" prefix="$">
        <template v-slot:control>
          <div class="self-center full-width no-outline" tabindex="0">{{
            number
          }}</div>
        </template>

        <template v-slot:append>
          <t-avatar>
            <img src="https://cdn.quasar.dev/logo-v2/svg/logo.svg" />
          </t-avatar>
        </template>
      </t-field>

      <t-field
        standout
        :model-value="email"
        prefix="Email:"
        suffix="@gmail.com"
      >
        <template v-slot:prepend>
          <t-icon name="mail" />
        </template>

        <template v-slot:control>
          <div
            class="self-center full-width no-outline text-right"
            tabindex="0"
            >{{ email }}</div
          >
        </template>
      </t-field>
    </div>
  </div>
</template>

<script>
  import { ref } from 'vue';

  export default {
    setup() {
      return {
        email: ref('john.doe'),
        number: ref(123),
      };
    },
  };
</script>
